home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
oath.lha
/
oath
/
test
/
bi1.cc
< prev
next >
Wrap
C/C++ Source or Header
|
1991-08-29
|
693b
|
27 lines
#include "oath/bigInteger.h"
#include <iostream.h>
main ()
{bigIntegerA Z = bigIntegerA::make("0");
cout << " Z = " << Z << endl;
bigIntegerA O = bigIntegerA::make("1");
cout << " O = " << O << endl;
bigIntegerA A = bigIntegerA::make("-1234567890");
cout << " A = " << A << endl;
bigIntegerA B = bigIntegerA::make("-987654321");
cout << " B = " << B << endl;
A += B;
cout << "A+=B = " << A << endl;
A += B;
cout << "A+=B = " << A << endl;
A += B;
cout << "A+=B = " << A << endl;
A += B;
cout << "A+=B = " << A << endl;
A += B;
cout << "A+=B = " << A << endl;
A += B;
cout << "A+=B = " << A << endl;
}